import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default({
  namespaced:true,
  state: {
    //saleData:[],//销售清单
    changeIndex:0,//被修改索引
  },
  mutations: {
    findWithIndex(state,index){
      state.changeIndex=index;
      console.log('********vues-cashdesk-index')
      console.log(state.kind);
    },
    clearIndex(state){
      state.changeIndex=0;
    }
  }
})
